package com.zyk.scaffold.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zyk.scaffold.user.entity.TenantUserRole;

import java.util.List;

/**
 * <p>
 * 租户-用户-角色关联表 服务类
 * </p>
 *
 * @author zhouyk
 * @since 2021-12-06
 */
public interface TenantUserRoleService extends IService<TenantUserRole> {
    List<TenantUserRole> getUserRolesByUserId(Long userId);

    TenantUserRole getUserRoleByRoleId(Long roleId);

    List<TenantUserRole> getUserRolesByUserIds(List<Long> userIds);

    Boolean deletedUserRoleByUserId(Long userId, Long optionUserId);

    Boolean UpdateBatch(List<TenantUserRole> lstTenantUserRole, Long userId, Long optionUserId);

    List<TenantUserRole> getUserRoleByRoleIds(List<Long> roleIds);
}
